﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000941 RID: 2369
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class IAEKELNHGFP : IMessage<IAEKELNHGFP>, IMessage, IEquatable<IAEKELNHGFP>, IDeepCloneable<IAEKELNHGFP>, IBufferMessage
	{
		// Token: 0x17001E0C RID: 7692
		// (get) Token: 0x06006A56 RID: 27222 RVA: 0x0011DE29 File Offset: 0x0011C029
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<IAEKELNHGFP> Parser
		{
			get
			{
				return IAEKELNHGFP._parser;
			}
		}

		// Token: 0x17001E0D RID: 7693
		// (get) Token: 0x06006A57 RID: 27223 RVA: 0x0011DE30 File Offset: 0x0011C030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return IAEKELNHGFPReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001E0E RID: 7694
		// (get) Token: 0x06006A58 RID: 27224 RVA: 0x0011DE42 File Offset: 0x0011C042
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return IAEKELNHGFP.Descriptor;
			}
		}

		// Token: 0x06006A59 RID: 27225 RVA: 0x0011DE49 File Offset: 0x0011C049
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IAEKELNHGFP()
		{
		}

		// Token: 0x06006A5A RID: 27226 RVA: 0x0011DE51 File Offset: 0x0011C051
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IAEKELNHGFP(IAEKELNHGFP other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006A5B RID: 27227 RVA: 0x0011DE82 File Offset: 0x0011C082
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IAEKELNHGFP Clone()
		{
			return new IAEKELNHGFP(this);
		}

		// Token: 0x17001E0F RID: 7695
		// (get) Token: 0x06006A5C RID: 27228 RVA: 0x0011DE8A File Offset: 0x0011C08A
		// (set) Token: 0x06006A5D RID: 27229 RVA: 0x0011DE92 File Offset: 0x0011C092
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17001E10 RID: 7696
		// (get) Token: 0x06006A5E RID: 27230 RVA: 0x0011DE9B File Offset: 0x0011C09B
		// (set) Token: 0x06006A5F RID: 27231 RVA: 0x0011DEA3 File Offset: 0x0011C0A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x06006A60 RID: 27232 RVA: 0x0011DEAC File Offset: 0x0011C0AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as IAEKELNHGFP);
		}

		// Token: 0x06006A61 RID: 27233 RVA: 0x0011DEBA File Offset: 0x0011C0BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(IAEKELNHGFP other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006A62 RID: 27234 RVA: 0x0011DEF8 File Offset: 0x0011C0F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006A63 RID: 27235 RVA: 0x0011DF56 File Offset: 0x0011C156
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006A64 RID: 27236 RVA: 0x0011DF5E File Offset: 0x0011C15E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006A65 RID: 27237 RVA: 0x0011DF68 File Offset: 0x0011C168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006A66 RID: 27238 RVA: 0x0011DFC4 File Offset: 0x0011C1C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006A67 RID: 27239 RVA: 0x0011E01C File Offset: 0x0011C21C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(IAEKELNHGFP other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006A68 RID: 27240 RVA: 0x0011E06C File Offset: 0x0011C26C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006A69 RID: 27241 RVA: 0x0011E078 File Offset: 0x0011C278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarType = (AvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x040028A8 RID: 10408
		private static readonly MessageParser<IAEKELNHGFP> _parser = new MessageParser<IAEKELNHGFP>(() => new IAEKELNHGFP());

		// Token: 0x040028A9 RID: 10409
		private UnknownFieldSet _unknownFields;

		// Token: 0x040028AA RID: 10410
		public const int AvatarIdFieldNumber = 12;

		// Token: 0x040028AB RID: 10411
		private uint avatarId_;

		// Token: 0x040028AC RID: 10412
		public const int AvatarTypeFieldNumber = 7;

		// Token: 0x040028AD RID: 10413
		private AvatarType avatarType_;
	}
}
